
package com.yibing.dubbo.pojo;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class User implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = -7341603933521593227L;

  private Long              id;

  private String            username;

  private String            password;

  private Integer           age;

  /**
   * @return the id
   */
  public Long getId() {

    return id;
  }

  /**
   * @param id
   *          the id to set
   */
  public void setId(Long id) {

    this.id = id;
  }

  /**
   * @return the username
   */
  public String getUsername() {

    return username;
  }

  /**
   * @param username
   *          the username to set
   */
  public void setUsername(String username) {

    this.username = username;
  }

  /**
   * @return the password
   */
  public String getPassword() {

    return password;
  }

  /**
   * @param password
   *          the password to set
   */
  public void setPassword(String password) {

    this.password = password;
  }

  /**
   * @return the age
   */
  public Integer getAge() {

    return age;
  }

  /**
   * @param age
   *          the age to set
   */
  public void setAge(Integer age) {

    this.age = age;
  }

  /*
   * (non-Javadoc)
   * 
   * @see java.lang.Object#toString()
   */
  @Override
  public String toString() {

    return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
  }
}
